home *** CD-ROM | disk | FTP | other *** search
/ Motor Sport Digital Archive Collection 1960s / Motor Sport Digital Archive Collection 1960s.iso / main.swf / scripts / mx / events / DragEvent.as < prev    next >
Encoding:
Text File  |  2008-05-21  |  1.8 KB  |  58 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.MouseEvent;
  5.    import mx.core.DragSource;
  6.    import mx.core.IUIComponent;
  7.    import mx.core.mx_internal;
  8.    
  9.    use namespace mx_internal;
  10.    
  11.    public class DragEvent extends MouseEvent
  12.    {
  13.       mx_internal static const VERSION:String = "2.0.1.0";
  14.       
  15.       public static const DRAG_COMPLETE:String = "dragComplete";
  16.       
  17.       public static const DRAG_DROP:String = "dragDrop";
  18.       
  19.       public static const DRAG_ENTER:String = "dragEnter";
  20.       
  21.       public static const DRAG_EXIT:String = "dragExit";
  22.       
  23.       public static const DRAG_OVER:String = "dragOver";
  24.       
  25.       public static const DRAG_START:String = "dragStart";
  26.       
  27.       public var action:String;
  28.       
  29.       public var draggedItem:Object;
  30.       
  31.       public var dragSource:DragSource;
  32.       
  33.       public var dragInitiator:IUIComponent;
  34.       
  35.       public function DragEvent(param1:String, param2:Boolean = false, param3:Boolean = true, param4:IUIComponent = null, param5:DragSource = null, param6:String = null, param7:Boolean = false, param8:Boolean = false, param9:Boolean = false)
  36.       {
  37.          super(param1,param2,param3);
  38.          this.dragInitiator = param4;
  39.          this.dragSource = param5;
  40.          this.action = param6;
  41.          this.ctrlKey = param7;
  42.          this.altKey = param8;
  43.          this.shiftKey = param9;
  44.       }
  45.       
  46.       override public function clone() : Event
  47.       {
  48.          var _loc1_:DragEvent = null;
  49.          _loc1_ = new DragEvent(type,bubbles,cancelable,dragInitiator,dragSource,action,ctrlKey,altKey,shiftKey);
  50.          _loc1_.relatedObject = this.relatedObject;
  51.          _loc1_.localX = this.localX;
  52.          _loc1_.localY = this.localY;
  53.          return _loc1_;
  54.       }
  55.    }
  56. }
  57.  
  58.